package com.baby.work.controller;

import com.baby.work.domain.aop.Calculator;
import com.baby.work.service.ChargeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("aop")
public class AopController {

    @Autowired
//   @Qualifier
    Calculator calculator;

    @GetMapping("/aop")
    public void testAop() {
        calculator.add(1, 2);
        calculator.subtract(3, 2);
        calculator.multiply(1, 2);
        calculator.divide(8, 2);
    }
}
